import 'package:automated_test/common/constant.dart';
import 'package:flutter/material.dart';

class Helper extends StatelessWidget {
  const Helper({Key? key}) : super(key: key);

  final List<String> hints = const <String>[
    "当主板发生异常可按以下指引进行排查：",
    "1.请检查主板是否连接。",
    "2.4pin线是否正常连接，有一端是否有交叉。",
    "3.wifi模组是否通电，并且接到主板的12v。",
    "4.路由器wifi名称密码是否正确。",
    "5.手机连接路由器wifi是否能正常上网。",
    "6.是否距离路由器过远。",
    "7.是否有多个MIFI开头的wifi信号。"
  ];

  _buildHelpContent() => ListView.builder(
        itemBuilder: (context, index) => ListTile(
          title: Text(
            hints[index],
            style: TextStyle(fontSize: Dimension.sp18),
          ),
        ),
        itemCount: hints.length,
      );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        toolbarHeight: Dimension.h56,
        title: Text(
          "帮助",
          style: TextStyle(fontSize: Dimension.sp24),
        ),
        centerTitle: true,
      ),
      body: _buildHelpContent(),
    );
  }
}
